package com.qyhl.shop.shop.center.coupon.detail;

import com.qyhl.webtv.commonlib.entity.shop.ShopCouponBean;

public class ShopCenterCouponDetailPresenter implements ShopCenterCouponDetailContract.ShopCenterCouponDetailPresenter {
    private ShopCenterCouponDetailContract.ShopCenterCouponDetailView mView;
    private ShopCenterCouponDetailModel mModel;

    public ShopCenterCouponDetailPresenter(ShopCenterCouponDetailContract.ShopCenterCouponDetailView mView) {
        this.mView = mView;
        this.mModel = new ShopCenterCouponDetailModel(this);
    }

    @Override
    public void getDetail(String phoneNum, int userCouponId) {
        mModel.getDetail(phoneNum, userCouponId);
    }

    @Override
    public void setDetail(ShopCouponBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
